import React, {Component} from 'react'
import Url from 'url'

class ProductContent9 extends Component {
    constructor(props) {
        super(props);
        this.state = { 
            aid: '' 
         };
    }

    componentDidMount=()=>{
        console.log(Url.parse(this.props.location.search, true));
        var url = Url.parse(this.props.location.search, true); 
        console.log(url); 
        this.setState({
            aid: url.query.aid 
        })
    }
    render() {
        return (
            <div>
                我是商品详情组件 ---  {this.state.aid}
            </div>
        );
    }
}

export default ProductContent9;